#include "qchangewordclass.h"
#include "ui_qchangewordclass.h"

QChangeWordClass::QChangeWordClass(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::QChangeWordClass)
{
    ui->setupUi(this);
}

QChangeWordClass::~QChangeWordClass()
{
    delete ui;
}

void QChangeWordClass::on_EnterBtn_clicked()
{
    QString str = ui->comboBox_2->currentText() ;
    emit sendWordClass( str );
    close();
}


void QChangeWordClass::on_CannelBtn_clicked()
{
    close();
}

void QChangeWordClass::showChangeWordClassSlot(const QModelIndex &index)
{
    currentIndex = index;
//    if ( index.column() == 3 )
//    {
//        ui->comboBox_2->setCurrentText( index.data().toString() );
//        exec();
//    }
}

